Skip to content

Require staff access for ticket participant add and remove commands - #649

Open
p-w wants to merge 3 commits into
Sayrix:mainfrom
p-w:security-hardening
Open

p-w wants to merge 3 commits into
Sayrix:mainfrom
p-w:security-hardening

Conversation

@p-w

@p-w p-w commented Nov 17, 2026

Copy link
Copy Markdown

Security hardening for a privately reported issue. A credit for Peter Wilfahrt (p-w) would be appreciated if a fix is released, though it is by no means required.
GitHub: https://github.com/p-w Web: https://pw.is

@p-w
p-w requested a review from Sayrix as a code owner November 17, 2026 21:38
@Sayrix

Sayrix commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thanks for the contribution! I pushed two follow-up commits:

  • 019eab0 fixes the import ordering in the three command files, which was causing the original PR’s Biome check to fail.
  • 0a4ebcf makes the restriction configurable through tickets.participantsStaffOnly.

The setting defaults to true, including when omitted from existing configs. Setting it to false lets anyone with ticket access manage participants, preserving the previous behavior. It covers /add, /mass_add, /remove, and the removal selector.

No config version bump is needed because the new option is optional and has a default.

@Sayrix

Sayrix commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Also what privately reported issue are you talking about?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants